package com.itheima.health.dao;

import com.github.pagehelper.Page;
import com.itheima.health.pojo.Setmeal;
import org.apache.ibatis.annotations.Param;
import tk.mybatis.mapper.common.Mapper;

import java.util.List;
import java.util.Map;

public interface SetmealMapper extends Mapper<Setmeal> {
    /**
     * @Author: 位帅帅
     * @Date: 19:39 2021/1/6
     * @Params: [queryString]
     * @RerurnType: com.github.pagehelper.Page<com.itheima.health.pojo.Setmeal>
     * @Description: 分页查询套餐
    */
    Page<Setmeal> findPage(@Param("queryString") String queryString);

    /**
     * @Author: 位帅帅
     * @Date: 20:13 2021/1/14
     * @Params: []
     * @RerurnType: java.util.List<java.util.Map<java.lang.String,java.lang.Object>>
     * @Description: 统计预约信息
    */
    List<Map<String, Object>> findSetmealCount();
}
